let hour = document.querySelector(".hour");
let minute= document.querySelector(".minute");
let second = document.querySelector(".second");

setInterval(()=>{
    let time = new Date();
    hour.style.transform=`translateY(-50%) rotate(${(time.getHours()+1)*30-90}deg)`;
    minute.style.transform=`translateY(-50%) rotate(${time.getMinutes()*6-90}deg)`;
    second.style.transform=`translateY(-50%) rotate(${time.getSeconds()*6-90}deg)`;
},1000);